PDF for WinRT
AddAttachment(String,Byte[],Rect,Int32,AttachmentIconEnum,Color) Method


Name of the attachment.
Data contained in the attachment.
Area of the page that will contain the attachment (in points measured from the top-left corner of the page).
Index of the page that contains the attachment.
AttachmentIconEnum value that determines the appearance of the attachment icon.
Windows.UI.Color of the attachment icon.
Adds a file attachment to the document.
Syntax
'Declaration
 
Public Overloads Sub AddAttachment( _
   ByVal fileName As String, _
   ByVal data() As Byte, _
   ByVal rc As Rect, _
   ByVal page As Integer, _
   ByVal icon As AttachmentIconEnum, _
   ByVal iconColor As Color _
) 
'Usage
 
Dim instance As C1PdfDocument
Dim fileName As String
Dim data() As Byte
Dim rc As Rect
Dim page As Integer
Dim icon As AttachmentIconEnum
Dim iconColor As Color
 
instance.AddAttachment(fileName, data, rc, page, icon, iconColor)
public void AddAttachment( 
   string fileName,
   byte[] data,
   Rect rc,
   int page,
   AttachmentIconEnum icon,
   Color iconColor
)

Parameters

fileName
Name of the attachment.
data
Data contained in the attachment.
rc
Area of the page that will contain the attachment (in points measured from the top-left corner of the page).
page
Index of the page that contains the attachment.
icon
AttachmentIconEnum value that determines the appearance of the attachment icon.
iconColor
Windows.UI.Color of the attachment icon.
Remarks
When the user moves the mouse over an area of the page that contains an attachment, the mouse pointer and tool tip change to indicate that the user can retrieve the attachment. The user can right-click the attachment area to open or save the attachment.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback